<div align="left">
<H2 >Research</H2>
<div style = "width : 85%; float : right; background : whitesmoke;" align="right">
	<table>
	<?php 
		if($msg != ''){
			echo "<tr><td>".$msg."</td></tr>";
		} else {
			$i=0;
			foreach ($paper as $papel){
			
				echo "<tr><td style= 'border-bottom: 1px solid red;'>";
				echo"<div style = 'padding-right: 5px; padding-left: 5px'>";
				echo "<h3><a href = '".base_url()."rmis/research/viewresearch/".$papel['Res_ID']."''></h3>";
				echo ucwords($papel['Res_Title'])."</a><br>";
				foreach ($auth[$i] as $au) {
					echo "<span style='color:blue;'>";
					echo ucwords($au)." ";
					echo "</span>";
				}
				echo "<br>";
				if($papel['Res_Type'] == 1)
					echo "Graduate, ";
				else
					echo "Undergraduate, ";
				switch ($papel['Res_Department']) {
					case 'IT':
						echo "Information Technology, ";
						break;
					case 'IS':
						echo "Information System, ";
						break;
					case 'CS':
						echo "Computer Science, ";
						break;
				}
				if($papel['Res_Status'] == 1)
					echo "Finished, ";
				else
					echo "Ongoing, ";
				echo "(Uploaded on ".date("M Y",strtotime($papel['Res_Date_Uploaded'])).")";
				echo "<p>&nbsp&nbsp&nbsp&nbsp".$papel['Res_Abstract']."...</p>";
				echo "</p></div></td></tr>";

				$i++;
			}
		}
	?>
	</table>
</div>
</div>